package com.demo.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class DateUtil {

	public static String format(LocalDateTime dateTime){
		return dateTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
	}
	
	public static LocalDateTime parse(String str) {
		return LocalDateTime.parse(str);
	}
	
}
